package com.fbw.sys.domain;

/*

FieldTypeComment
useridint(11) NOT NULL
loginnamevarchar(255) NULL
identityvarchar(255) NULL
realnamevarchar(255) NULL
sexint(255) NULL0女1男
addressvarchar(255) NULL
phonevarchar(255) NULL
pwdvarchar(255) NULL
positionvarchar(255) NULL
typeint(255) NULL1，超级管理员,2，系统用户
availableint(255) NULL

建立实体对象，对应sys_user表
 */

public class User {
    private int userid;
    private String loginname;
    private String identity;
    private String realname;
    private int sex;
    private String address;
    private String phone;
    private String pwd;
    private String position;
    private int type;
    private int available;

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getloginname() {
        return loginname;
    }

    public void setloginname(String loginname) {
        this.loginname = loginname;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getAvailable() {
        return available;
    }

    public void setAvailable(int available) {
        this.available = available;
    }

    @Override
    public String toString() {
        return "User{" +
                "userid=" + userid +
                ", loginname='" + loginname + '\'' +
                ", identity='" + identity + '\'' +
                ", realname='" + realname + '\'' +
                ", sex=" + sex +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", pwd='" + pwd + '\'' +
                ", position='" + position + '\'' +
                ", type=" + type +
                ", available=" + available +
                '}';
    }
}
